<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var i=20;
			function first(){
				var i=5;
				for(var j=0;j<i;j++){
					document.write("<h1>nihao</h1>");
				}
			}
			first();
			function s2(){
				var t=prompt("input:");
				if(t>i){
					document.write("t大");
				}else{
					document.write("i大");
				}
				first();
			}
			s2();
			function s3(){
				alert("页面加载完成");
			}
		</script>
	</head>
	<body onload="s3()">
	</body>
</html>